From 17c9cd6d20735ce4be4cb7f1590b3d6d64c627c7 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 5 Jan 2012 19:40:40 +0100 Subject: [PATCH] libxl: add feature flag to xenstore for XS_RESET_WATCHES Tell guest about availibilty of xenstoreds XS_RESET_WATCHES function. Guests can not issue this command unconditionally because some buggy toolstacks (such as EC2) do not ignore unknown commands properly. Signed-off-by: Olaf Hering Committed-by: Ian Jackson Acked-by: Ian Jackson --- tools/libxl/libxl_create.c | 1 + tools/python/xen/xend/XendDomainInfo.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 7b6a2f92d2..815ee7951b 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -452,6 +452,7 @@ retry_transaction: libxl__xs_writev(gc, t, libxl__sprintf(gc, "%s/platform", dom_path), info->platformdata); xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/platform-feature-multiprocessor-suspend", dom_path), "1", 1); + xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/platform-feature-xs_reset_watches", dom_path), "1", 1); if (!xs_transaction_end(ctx->xsh, t, 0)) { if (errno == EAGAIN) { t = 0; diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 9f7c4a30df..456e325923 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1770,6 +1770,7 @@ class XendDomainInfo: f('store/port', self.store_port) f('store/ring-ref', self.store_mfn) + f('control/platform-feature-xs_reset_watches', True) if arch.type == "x86": f('control/platform-feature-multiprocessor-suspend', True) -- 2.30.2